﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Web;

namespace zichan.Models
{
    public class LoginViewModel
    {
        [Display(Name = "用户名")]
        [Required(ErrorMessage = "{0}必填")]
        public string UserName { get; set; }

        [Display(Name = "密码")]
        [Required(ErrorMessage = "{0}必填")]
        public string Password { get; set; }

        [Display(Name = "验证码")]
        [Required(ErrorMessage = "{0}必填")]
        [StringLength(4, MinimumLength = 4, ErrorMessage = "{0} 长度不对")]
        public string Verifycode { get; set; }
    }
}